﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CacheableTesting.Models;
using System.Diagnostics;
using System.IO;

namespace CacheableTesting.Controllers
{
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			ViewBag.Message = WebCacheHelper.FileCache.ReadAllTextRelative("~/welcome.txt");

			Globals.Username.Value = "Steve Wortham";
			Globals.LastVisit.Value = DateTime.Now;
			Globals.Counter.Value++;

			return View();
		}

		public ActionResult About()
		{
			return View();
		}
	}
}
